// 初始化仓库
export const initState = {
    banner: [],
}

export const reducer = (state, action) => {
    switch (action.type) {
        case "changeBanner":
            return {
                ...state,
                banner: action.arr
            }
        default:
            return state
    }
}

export const actions = {
    changeBanner: (arr) => ({type:"changeBanner",arr}),
}